package com.smedi.ismedi.authoritymanagement.api.dto.request;

import com.google.common.eventbus.AllowConcurrentEvents;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @Author: xulinjun
 * @Date: 2021-7-3 11:29
 */
@Data
public class RoleBasicRequest implements Serializable {
    @ApiModelProperty(value = "角色id")
    private Long roleId;

    @ApiModelProperty(value = "角色名称", required = true)
    @NotBlank(message = "角色名称为空！")
    @Size(max = 15, message = "最大15个字符")
    private String roleName;

    @ApiModelProperty(value = "描述")
    @Size(max = 50, message = "最大50个字符")
    private String remark;

    @ApiModelProperty(value = "是否管理员")
    private Boolean admin = false;

    @ApiModelProperty(value = "角色分类",required = true)
    @NotBlank(message = "角色分类不能为空！")
    private String roleType;
}
